package org.jeecg.modules.exOperationRecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: ex_operation_record
 * @Author: jeecg-boot
 * @Date: 2024-10-16
 * @Version: V1.0
 */
@Data
@TableName("ex_operation_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ex_operation_record对象", description = "ex_operation_record")
public class ExOperationRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 业务大类（1工程建设2政府采购）
     */
    @Excel(name = "业务大类（1工程建设2政府采购）", width = 15)
    @ApiModelProperty(value = "业务大类（1工程建设2政府采购）")
    private java.lang.String category;
    /**
     * 业务模块
     */
    @Excel(name = "业务模块", width = 15)
    @ApiModelProperty(value = "业务模块")
    private java.lang.String module;
    @ApiModelProperty(value = "业务模块")
    @TableField(exist = false)
    private java.lang.String moduleText;

    public String getModuleText() {
        String text = "";
        switch (getModule()) {
            case "gcProjectEntry":
                text = "项目进场";
                break;
            case "exProject":
                text = "项目管理";
                break;
        }
        return text;
    }

    /**
     * 操作业务ID
     */
    @Excel(name = "操作业务ID", width = 15)
    @ApiModelProperty(value = "操作业务ID")
    private java.lang.String entryId;
    /**
     * 操作人
     */
    @Excel(name = "操作人", width = 15)
    @ApiModelProperty(value = "操作人")
    private java.lang.String operator;
    /**
     * 操作时间
     */
    @Excel(name = "操作时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private java.util.Date operateTime;
    /**
     * 操作结果（1通过2驳回）
     */
    @Excel(name = "操作结果（1通过2驳回）", width = 15)
    @ApiModelProperty(value = "操作结果（1通过2驳回）")
    private java.lang.String operateResult;
    /**
     * 操作意见
     */
    @Excel(name = "操作意见", width = 15)
    @ApiModelProperty(value = "操作意见")
    private java.lang.String operateOpinion;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
}
